public class Ex4_45{
	public static void main(String[] args){
		for (int i = 1; i <= 7; i++)
			for (int j = i+1; j <= 7; j++)
				System.out.printf("(%d %d)\n", i, j);
	}
}